package com.lzx.lizhenxing.sys.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.lzx.lizhenxing.sys.model.User;
import org.apache.ibatis.annotations.Param;


public interface UserDao extends BaseMapper<User> {

    /**
     * 根据用户名查询用户信息
     * @param username
     * @return
     */
    User selectByUsername(String username);

    /**
     * 更新用户积分
     */
    void updatePointById(@Param("id") Long id, @Param("point") Integer point);
}
